]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceAnimation: Sort existing records when restacking
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 28 Apr 2026 12:25:44 +0000 (14:25 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:48:23 +0000 (18:48 +0200)
commitfe0dadb2288a1b5fbf418c08de83ba57861a4885
tree168cb78ac763e6279f85cae712beb525c6d89938
parent409db88488fc545f45de97f9851265c6323d24da
workspaceAnimation: Sort existing records when restacking

When restacking, we currently re-filter window actors, then match
each to the corresponding record.

Instead, sort the existing records according to the new stacking,
then iterate over those directly.

This reflects more directly that window records are fixed during
the transition, and avoids a (harmless) warning in case a window
only appeared during the animation and therefore cannot be
matched to a record.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/work_items/8881
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4199>
(cherry picked from commit e7e6de300cfb87c0f91738861b545017e5290ef9)
js/ui/workspaceAnimation.js